package com.mage.dao;

import com.mage.bean.PageBean;
import com.mage.bean.Record;

import java.sql.SQLException;
import java.util.List;

public interface RecordDao {

    int PAGE_SIZE = 5; //分页显示多少条记录
    PageBean findRecordByPages(int currentPage) throws SQLException;

    List<Record> findRecordByPage(int currentPage) throws SQLException;

    int findCount() throws SQLException;

    void insert(Record record) throws SQLException;
}
